configure: make the f16c test for half-float instructions stricter
authorØyvind Kolås <pippin@gimp.org>
Fri, 16 Dec 2016 14:01:34 +0000 (15:01 +0100)
committerØyvind Kolås <pippin@gimp.org>
Fri, 16 Dec 2016 14:01:34 +0000 (15:01 +0100)
configure.ac

index 6caaf9aa030eb246bfe3c4b331dca6ac282e8051..729770c7ea6f60e20d4ebe7746ebd632f15ddf67 100644 (file)
@@ -408,7 +408,7 @@ if test "x$enable_mmx" = xyes; then
 
         CFLAGS="$CFLAGS $sse_flag $f16c_flag"
 
-        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <immintrin.h>],[__m128 val = _mm_cvtph_ps ((__m128i)_mm_setzero_ps());])],
+        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <immintrin.h>],[__m128 val = _mm_cvtph_ps ((__m128i)_mm_setzero_ps()); __m128i val2 = _mm_insert_epi64((__m128i)_mm_setzero_ps(), 0, 0);])],
           AC_DEFINE(USE_F16C, 1, [Define to 1 if f16c intrinsics are available.])
           AC_MSG_RESULT(yes)
         ,